import { createWebHistory } from 'vue-router'
export default  {
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      component: () => import(/* webpackChunkName: "main" */ '../views/index.vue'),
      children:[
        {
          path: "/dmp_list",
          component: () => import(/* webpackChunkName: "dmp_list" */ '../views/dmp_list/index.vue')
        },
        {
          path: "/dmp_source",
          component: () => import(/* webpackChunkName: "dmp_source" */ '../views/dmp_source/index.vue')
        },
        {
          path: "/dmp_landing",
          component: () => import(/* webpackChunkName: "dmp_landing" */ '../views/dmp_landing/index.vue')
        },
        {
          path: "/",
          redirect: { path: '/dmp_list' }
        },
      ]
    },
    {
      path: '/login',
      meta: {
        skip_auth:true
      },
      component: () => import(/* webpackChunkName: "login" */ '../views/login/index.vue'),
    }
  ]
}
